package io.renren.modules.noc.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.noc.dao.NocMsgDao;
import io.renren.modules.noc.entity.NocMsgEntity;
import io.renren.modules.noc.service.NocMsgService;


@Service("nocMsgService")
public class NocMsgServiceImpl extends ServiceImpl<NocMsgDao, NocMsgEntity> implements NocMsgService {

    @Autowired
    private NocMsgDao dao;
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<NocMsgEntity> page = this.page(
                new Query<NocMsgEntity>().getPage(params),
                new QueryWrapper<NocMsgEntity>()
        );

        return new PageUtils(page);
    }

    public Map<String,Object> qunfa(){
        return dao.qunfa();
    }

}
